import request from '@/utils/request'

// 查询隐患整改详情列表
export function listRectifyAll(query) {
  return request({
    url: '/gas/rectifyAll/list',
    method: 'get',
    params: query
  })
}

// 查询隐患整改详情详细
export function getRectifyAll(id) {
  return request({
    url: '/gas/rectifyAll/' + id,
    method: 'get'
  })
}

// 新增隐患整改详情
export function addRectifyAll(data) {
  return request({
    url: '/gas/rectifyAll',
    method: 'post',
    data: data
  })
}

// 修改隐患整改详情
export function updateRectifyAll(data) {
  return request({
    url: '/gas/rectifyAll',
    method: 'put',
    data: data
  })
}

// 删除隐患整改详情
export function delRectifyAll(id) {
  return request({
    url: '/gas/rectifyAll/' + id,
    method: 'delete'
  })
}
